function [ adjusted ] = my_imadjust( img, type )
    norm = my_normalize(img);
    if strcmp(type, 'uint8')
        adjusted = uint8(norm * 256);
    else
        adjusted = uint16(norm * (256 * 256));
    end
end

